//WorkerTest测试继承关系
public class WorkerTest{
	public static void main(String[] args) {
		Worker w1 = new Worker();
		w1.show();

		Teacher t1 = new Teacher();
		t1.show();

		//带参数
		Worker w2 = new Worker(18,"liyulin",3000);
		w2.show();
		w2.work();

		
		w2.show();

	}
}